package com.caigou.service.impl;


import com.caigou.bean.cms.entity.UserBaseInfo;
import com.caigou.mapper.cms.UserBaseInfoMapper;
import com.caigou.service.IUserBaseInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserBaseInfoServiceImpl implements IUserBaseInfoService {

    @Resource
    private UserBaseInfoMapper userBaseInfoMapper;

    @Override
    public UserBaseInfo findUserBaseInfoByUserId(String userid) {

        return userBaseInfoMapper.findUserBaseInfoByUserId(userid);
    }

    @Override
    public String loadUserIdByName(String realName) {
        return userBaseInfoMapper.loadUserIdByName(realName);
    }

    @Override
    public String loadUserName(String articleUserId) {
        return userBaseInfoMapper.loadUserName(articleUserId);
    }
}
